<!doctype html>
<html lang="en">	
	<head>
		<meta charset="UTF-8">
		<meta name="Generator" content="EditPlus®">
		<meta name="Author" content="">
		<meta name="Keywords" content="">
		<meta name="Description" content="">
		<title>属性选择器</title>
		<style>
			*{margin:0;padding:0;}
			a{text-decoration:none;}
			ul,li{list-style:none;}
			body{font-size:12px;font-family:"微软雅黑";}
			/* div[class="div1"]{color:red;}全部div1的元素 */
			/* p[class~="div1"]{color:red;} 前面加了什么标签  就匹配什么标签class~="div1"的元素*/
			
		</style>
	</head>
	<body>
		
		<div class="div1">1</div>
		<div class="div2">2</div>
		<div class="div3">3</div>
		<div class="div1">4</div>
		<p><div class="div1">4</div>	</p>
		<div class="div1">4</div>	
		<p class="div1">p</p>
		<p class="div2">p</p>
		<p class="div1">p</p>
		<input type="text">
		<input type="submit">
		<input type="">
		<input type="">	
		<script src="../js/jquery-1.12.2.min.js""></script>
		<script src="../js/dom.js"></script>
		<script type="text/javascript">
			


		</script>	
		
		
	</body>
</html>
